package com.ruoyi.carService.service.impl;

import java.util.List;

import com.ruoyi.system.api.domain.ReleaseInformation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.carService.mapper.ReleaseInformationMapper;
import com.ruoyi.system.api.domain.ReleaseInformation;
import com.ruoyi.carService.service.IReleaseInformationService;

/**
 * 信息发布Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Service
public class ReleaseInformationServiceImpl implements IReleaseInformationService 
{
    @Autowired
    private ReleaseInformationMapper releaseInformationMapper;

    /**
     * 查询信息发布
     * 
     * @param riId 信息发布主键
     * @return 信息发布
     */
    @Override
    public ReleaseInformation selectReleaseInformationByRiId(Long riId)
    {
        return releaseInformationMapper.selectReleaseInformationByRiId(riId);
    }

    /**
     * 查询信息发布列表
     * 
     * @param releaseInformation 信息发布
     * @return 信息发布
     */
    @Override
    public List<ReleaseInformation> selectReleaseInformationList(ReleaseInformation releaseInformation)
    {
        return releaseInformationMapper.selectReleaseInformationList(releaseInformation);
    }

    /**
     * 新增信息发布
     * 
     * @param releaseInformation 信息发布
     * @return 结果
     */
    @Override
    public int insertReleaseInformation(ReleaseInformation releaseInformation)
    {
        return releaseInformationMapper.insertReleaseInformation(releaseInformation);
    }

    /**
     * 修改信息发布
     * 
     * @param releaseInformation 信息发布
     * @return 结果
     */
    @Override
    public int updateReleaseInformation(ReleaseInformation releaseInformation)
    {
        return releaseInformationMapper.updateReleaseInformation(releaseInformation);
    }

    /**
     * 批量删除信息发布
     * 
     * @param riIds 需要删除的信息发布主键
     * @return 结果
     */
    @Override
    public int deleteReleaseInformationByRiIds(Long[] riIds)
    {
        return releaseInformationMapper.deleteReleaseInformationByRiIds(riIds);
    }

    /**
     * 删除信息发布信息
     * 
     * @param riId 信息发布主键
     * @return 结果
     */
    @Override
    public int deleteReleaseInformationByRiId(Long riId)
    {
        return releaseInformationMapper.deleteReleaseInformationByRiId(riId);
    }

    // @Override
    // public List<ReleaseInformation> queryReleaseByLike(String merchantName,String merchantAddress) {
    //     return releaseInformationMapper.queryReleaseByLike(merchantName,merchantAddress);
    // }
    @Override
    public List<ReleaseInformation> queryReleaseByLike(ReleaseInformation releaseInformation) {
        return releaseInformationMapper.queryReleaseByLike(releaseInformation);
    }

    @Override
    public List<ReleaseInformation> queryReleaseUnCheck() {
        return releaseInformationMapper.queryReleaseUnCheck();
    }

    @Override
    public List<ReleaseInformation> queryReleaseUnCheck1() {
        return releaseInformationMapper.queryReleaseUnCheck1();
    }
}
